package com.yudongyang.dao;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.yudongyang.domain.Disease;
import com.yudongyang.domain.Patient;

public interface PatientMapper {
//查询全部
	List<Patient> selects(Patient p);
//获取所有的病
	@Select("select * from disease")
	List<Disease> getDisease();
//添加
	int add(Patient p);
//获取一个回显
	@Select("select * from patient where id = #{id}")
	Patient getOne(String id);
//修改
	int update(Patient p);

}
